package com.demo;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SayHelloController {

    @Reference
    HelloService helloService;

    @GetMapping("/hello")
    public ResponseEntity hello(){
        String a = helloService.sayHello("jason");
        return ResponseEntity.ok(a);
    }
}